import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams, ModalController, Item } from 'ionic-angular';
import { COMBO_DATA } from '../../../common/combo'
import { ApiProvider } from '../../../providers/api/api';
import { NotificationProvider } from '../../../providers/notification/notification';
import { StorageProvider } from '../../../providers/storage/storage';
import { ToolProvider } from '../../../providers/tool/tool';
import { Observable } from 'rxjs';
import { HttpParams } from '@angular/common/http';
import { ZBar, ZBarOptions } from '@ionic-native/zbar';
/**
 * Generated class for the VoucherPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-voucher',
  templateUrl: 'voucher.html',
})
export class VoucherPage {

  constructor(
    public navCtrl: NavController, 
    public navParams: NavParams, 
    private api: ApiProvider, 
    private notification: NotificationProvider, 
    private modalCtrl: ModalController,
    private storage: StorageProvider,
    private tool: ToolProvider,
    private zbar: ZBar) {
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad VoucherPage');
  }

  //入库登记页面
  seaSpin(){
    //navCtrl页面跳转
    this.navCtrl.push('SerspinPage');
  }
  //出库登记页面
  seaSpout(){
    //modalCtrl这个是弹窗
    /*let modal = this.modalCtrl.create('SerspoutPage');
    let isExist = false;
    modal.present();
    */
   this.navCtrl.push('SerspoutPage');
  }

}
